package equipe2msvy.ProjectServeurApplication.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name="PERSONNE")
@PrimaryKeyJoinColumn(name="ID_PERSONNE")
@Inheritance(strategy=InheritanceType.JOINED)
public class Personne extends Utilisateur{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Column(name="NOM")
	private String nom;
	@Column(name="PRENOM")
	private String prenom;
	@Column(name="ADRESSE")
	private String adresse;
	@Column(name="EMAIL")
	private String email;
	@Column(name="TELEPHONE")
	private String telephone;
	public Personne() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Personne(String login, String password, String nom, String prenom,
			String adresse, String email, String telephone) {
		super(login, password);
		this.nom = nom;
		this.prenom = prenom;
		this.adresse = adresse;
		this.email = email;
		this.telephone = telephone;
	}
	public String getNom() {
		return nom;
	}
	public void setNom(String nom) {
		this.nom = nom;
	}
	public String getPrenom() {
		return prenom;
	}
	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}
	public String getAdresse() {
		return adresse;
	}
	public void setAdresse(String adresse) {
		this.adresse = adresse;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
}
